import Reflux from "reflux"
import BaseAction, {addDefaultListerns} from "@/base/BaseAction";

const prefix = "/product/washProduct/";
const api = {
    search: prefix + "search",
    create: prefix + "create",
    edit: prefix + "edit",
    detail: prefix + "detail",
    enabled: prefix + "enabled",
    delete:  prefix+"delete",
    sort: prefix +"sort"
};

const createAction = () => {
    const Action = Reflux.createActions({
        ...BaseAction,

    });

    addDefaultListerns(Action, api);

    return Action;
};

export {api, createAction}